package com.hmall.common.Feign.OrderFeign;
import com.hmall.common.dto.Order;
import com.hmall.common.dto.OrderDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@FeignClient("order-service")
public interface Orderfeign {
    @GetMapping("order/{id}")
    public Order queryOrderById(@PathVariable("id") Long orderId);
    @PostMapping("/order")
    public Long insert(@RequestBody OrderDTO orderDTO);
}
